<?php

$dir   = str_replace("\\", "/", dirname(__FILE__));
$doc   = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']);
$pj_name = str_replace(array($doc, "config", "//", 'defines'), array("", "", "/", ""), $dir);

//nome do diretorio onde estara o projeto
if(!defined("PROJECT")) define('PROJECT', $pj_name);

//ativa o debug no site
//if(!defined("DEBUG")) define('DEBUG', !array_key_exists('ajax', $_POST));
//if(!defined("DEBUG")) define('DEBUG', false);
if(!defined("DEBUG")) define('DEBUG', true);
if(!defined("DEBUG_LAYOUT")) define('DEBUG_LAYOUT', DEBUG);

//charset do site
if(!defined("CHARSET")) define("CHARSET", "utf-8");


?>